﻿@model IntroMVC4.Models.Domain.ProductSKU

@*<link href="/Content/bootstrap/bootstrap.css" rel="stylesheet"/>*@
@using (Html.BeginForm("ThemSanPham", "Admin"))
{    
    
    <div class="panel panel-default">
        <div class="panel-heading">
            <h5>Thông Tin Sản Phẩm
                <button class="pull-right btn btn-small btn-primary" type="submit">Lưu sản phẩm</button></h5>
        </div>
        <div class="panel-body">
            <div class="input-group col-md-8">
                <span class="input-group-addon">Mã sản phẩm</span>
                <input class="form-control" type="text" maxlength="50" value="@Model.SKU" id="SKU" name="SKU" />
            </div>
            <div class="clearfix"></div>
            <br />
            <div class="input-group col-sm-8">
                <span class="input-group-addon">Mã quốc tế</span>
                <input class="form-control" type="text" maxlength="50" value="@Model.GTIN" id="GTIN" name="GTIN" />
            </div>
            <div class="clearfix"></div>
            <br />
            <div class="input-group col-sm-8">
                <span class="input-group-addon">Tên sản phẩm</span>
                <input class="form-control" type="text" maxlength="50" value="@Model.Name" id="Name" name="Name" />
            </div>
            <div class="clearfix"></div>
            <br />
            <div class="input-group col-sm-8">
                <span class="input-group-addon">Hãng</span>
                @Html.DropDownList("PrincipalCategoryId", ViewData["PrincipalCategories"] as List<SelectListItem>, String.Empty, new { @class = "form-control" })
            </div>
            <div class="clearfix"></div>
            <br />
            <div class="input-group col-sm-8">
                <span class="input-group-addon">Loại Sản Phẩm</span>
                @Html.DropDownList("ProductCatalogId", ViewData["ProductCategories"] as List<SelectListItem>, String.Empty, new {@class = "form-control" })
            </div>
            <div class="clearfix"></div>
            <br />
            <div class="input-group col-sm-8">
                <label>
                    <input type="checkbox" checked="@Model.IsActive" id="IsActive" name="IsActive">
                    Hiển thị sản phẩm này
                </label>
            </div>
        </div>
    </div>
}
@section Scripts {
    @Scripts.Render("~/bundles/jqueryval")
}
